/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package eu.soft.pdm.webservices;
import eu.soft.pdm.model.Utente;
import java.util.ArrayList;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
/**
 *
 * @author delmastro
 */
@WebService()
public class Protocollo {
    /**
     * Web service operation
     * @param i
     * @param j
     * @return 
     */
    @WebMethod(operationName = "add")
    public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
        return i + j;
    }
    @WebMethod(operationName = "registra")
    public String registra(@WebParam(name = "user") Utente user) {
        String g = user.getCongome();
        System.out.println(g);
        return g;
    }
    
}
